public class Quad
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
float |
ll_x |
float |
ll_y |
float |
lr_x |
float |
lr_y |
float |
ul_x |
float |
ul_y |
float |
ur_x |
float |
ur_y |
Constructor and Description |
---|
Quad(float ul_x,
float ul_y,
float ur_x,
float ur_y,
float ll_x,
float ll_y,
float lr_x,
float lr_y) |
Quad(Rect r) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(float x,
float y) |
boolean |
contains(Point p) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
Rect |
toRect() |
java.lang.String |
toString() |
Quad |
transform(Matrix m) |
Quad |
transformed(Matrix m) |
protected boolean |
triangleContainsPoint(float x,
float y,
float ax,
float ay,
float bx,
float by,
float cx,
float cy) |
public float ul_x
public float ul_y
public float ur_x
public float ur_y
public float ll_x
public float ll_y
public float lr_x
public float lr_y
public Quad(float ul_x, float ul_y, float ur_x, float ur_y, float ll_x, float ll_y, float lr_x, float lr_y)
public Quad(Rect r)
public Rect toRect()
protected boolean triangleContainsPoint(float x, float y, float ax, float ay, float bx, float by, float cx, float cy)
public boolean contains(float x, float y)
public boolean contains(Point p)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object